package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.MemberDao;
import com.ericom.model.Member;
@Repository("mermberDao")
public class MemberDaoHibernate extends GenericDaoHibernate<Member, Long> implements
		MemberDao {

	public MemberDaoHibernate() {
		super(Member.class);
		
	}

	public List<Member> findByUserName(String username) {
		
		return this.getHibernateTemplate().find("from Member where username=?",username);
	}
	

}
